<?php
$this->breadcrumbs=array(
	'User'=>array('/user'),
	'Edit profile',
);?>
<div class="row">
	<div class="span3">
<div class="sidebar-nav box_white">
	<ul class="nav nav-list panel">
		<li class="nav-header"><h4>Your Account</h4></li>
		<li><a href="<?php echo Yii::app()->createUrl('/user'); ?>">Edit profile</a></li>
		<li><a href="<?php echo Yii::app()->createUrl('/user/account'); ?>">Change password</a></li>
		<li><a href="<?php echo Yii::app()->createUrl('/accounts/logout'); ?>">Log Out</a></li>
	</ul>
</div>
	</div>
	
	<div class="span9">
<header>
	<h1>Delete Your Account</h1>
</header>
<p>Hi <b><?php echo Yii::app()->user->getState('name'); ?></b>,</p>
<p>We're sorry to hear you'd like to remove your account.</p>
<br />

<form onsubmit="return confirm('Are you sure you want to delete your account?');" method="POST" action="">
	<label for="deletion-reason">Before you go, please tell us why</label>
	<div class="waiting" style="display: block;">
		<p>
			<label for="password">To continue, please re-enter your password</label>
			<input type="password" name="password" id="password">
		</p>
		<br />

		<p>By pressing the button below, <b>your photos, comments, likes, and all other data will be removed permanently and will not be recoverable. Additionally, you cannot sign up with the same username again.</b></p>

		<p class="form-actions">
			<?php echo CHtml::submitButton('Permanently deactivate my account', array('class'=>'btn btn-danger btn-large')); ?>
		</p>
	</div>
</form>
	</div>
</div>